import { Component, EventEmitter, Input, Output, OnInit, OnChanges } from '@angular/core';
import { Assembly, AssemblyStyles, AssemblyValidators } from '../../../fb-design.model'
import { DynamicDialogRef, DynamicDialogConfig } from 'primeng/api';

@Component({
    templateUrl: 'qk-content-attributes.component.html',
    styleUrls: ['qk-content-attributes.component.scss'],
    providers: []
})
export class QkContentAttributes implements OnInit {
    content: string;
    constructor(
        public ref: DynamicDialogRef,
        public config: DynamicDialogConfig) { }

    ngOnInit() {
        this.content = this.config.data.content;
    }

    save() {
        this.ref.close(this.content);
    }

    cancel() {
        this.ref.close();
    }

}